import request from "@/utils/request";

//添加员工信息
export const addEmployeeService = (data) => {
  return request.post("/employee", data);
};

//根据id删除员工信息
export const deleteEmployeeService = (id) => {
  return request.delete("/employee", { params: { id } });
};

//更新员工信息
export const modifyEmployeeService = (data) => {
  return request.put("/employee", data);
};

//员工分页查询
export const getEmployeeListService = (data) => {
  return request.get("/employee/page", { params: data });
};

//根据id查询员工信息
export const getEmployeeByIdService = (id) => {
  return request.get("/employee", { params: { id } });
};

//员工登录
export const employeeLoginService = (data) => {
  return request.post("/login", data);
};

//员工密码修改
export const modifyPasswordService = (data) => {
  return request.put("/user/password", data);
};

// //员工重置密码请求
// export const resetPasswordSercice = (data) => {
//   return request.post("/user/forget",data)
// }

